<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />

    

    
    <title>股票球 | depend的博客</title>
    
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="keywords" content="" />
    
    <meta name="description" content="股票球，采用的是qt和新浪的api来设计，目前只有查看功能，2021年1月17日开始开发，后续可能会持续更新（可能跟心情有关）k线图在 Windows下获取数据有问题，还没来得及做，目前在Linux下没有问题，并打了一个deb包qt5.11.3制作的，可以玩一下，Windows下的版本会在以后加吧(2021&#x2F;4&#x2F;1)项目代码地址https:&#x2F;&#x2F;github.com&#x2F;dependon&#x2F;Stock-B">
<meta property="og:type" content="article">
<meta property="og:title" content="股票球">
<meta property="og:url" content="http://example.com/2021/01/17/%E8%82%A1%E7%A5%A8%E7%90%83/index.html">
<meta property="og:site_name" content="depend的博客">
<meta property="og:description" content="股票球，采用的是qt和新浪的api来设计，目前只有查看功能，2021年1月17日开始开发，后续可能会持续更新（可能跟心情有关）k线图在 Windows下获取数据有问题，还没来得及做，目前在Linux下没有问题，并打了一个deb包qt5.11.3制作的，可以玩一下，Windows下的版本会在以后加吧(2021&#x2F;4&#x2F;1)项目代码地址https:&#x2F;&#x2F;github.com&#x2F;dependon&#x2F;Stock-B">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://img-blog.csdnimg.cn/293e2ea8770e40eda65d59e6bb3a8c61.png">
<meta property="article:published_time" content="2021-01-17T12:29:11.000Z">
<meta property="article:modified_time" content="2022-03-01T12:29:47.000Z">
<meta property="article:author" content="depend">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://img-blog.csdnimg.cn/293e2ea8770e40eda65d59e6bb3a8c61.png">
    

    

    

    
<link rel="stylesheet" href="/libs/font-awesome/css/font-awesome.min.css">

    
<link rel="stylesheet" href="/libs/titillium-web/styles.css">

    
<link rel="stylesheet" href="/libs/source-code-pro/styles.css">


    
<link rel="stylesheet" href="/css/style.css">


    
<script src="/libs/jquery/3.5.0/jquery.min.js"></script>

    
    
        
<link rel="stylesheet" href="/libs/lightgallery/css/lightgallery.min.css">

    
    
        
<link rel="stylesheet" href="/libs/justified-gallery/justifiedGallery.min.css">

    
    
    
    


<meta name="generator" content="Hexo 5.4.1"></head>

<body>
    <div id="wrap">
        <header id="header">
    <div id="header-outer" class="outer">
        <div class="container">
            <div class="container-inner">
                <div id="header-title">
                    <h1 class="logo-wrap">
                        <a href="/" class="logo"></a>
                    </h1>
                    
                </div>
                <div id="header-inner" class="nav-container">
                    <a id="main-nav-toggle" class="nav-icon fa fa-bars"></a>
                    <div class="nav-container-inner">
                        <ul id="main-nav">
                            
                                <li class="main-nav-list-item" >
                                    <a class="main-nav-list-link" href="/">主页</a>
                                </li>
                            
                                    
                                
                                <li class="main-nav-list-item" >
                                    <a class="main-nav-list-link" href="/about/about.html">关于</a>
                                </li>
                            
                        </ul>
                        <nav id="sub-nav">
                            <div id="search-form-wrap">

    <form class="search-form">
        <input type="text" class="ins-search-input search-form-input" placeholder="搜索" />
        <button type="submit" class="search-form-submit"></button>
    </form>
    <div class="ins-search">
    <div class="ins-search-mask"></div>
    <div class="ins-search-container">
        <div class="ins-input-wrapper">
            <input type="text" class="ins-search-input" placeholder="想要查找什么..." />
            <span class="ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
        </div>
        <div class="ins-section-wrapper">
            <div class="ins-section-container"></div>
        </div>
    </div>
</div>
<script>
(function (window) {
    var INSIGHT_CONFIG = {
        TRANSLATION: {
            POSTS: '文章',
            PAGES: '页面',
            CATEGORIES: '分类',
            TAGS: '标签',
            UNTITLED: '(未命名)',
        },
        ROOT_URL: '/',
        CONTENT_URL: '/content.json',
    };
    window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
</script>

<script src="/js/insight.js"></script>


</div>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>

        <div class="container">
            <div class="main-body container-inner">
                <div class="main-body-inner">
                    <section id="main">
                        <div class="main-body-header">
    <h1 class="header">
    
    未分类
    </h1>
</div>

                        <div class="main-body-content">
                            <article id="post-股票球" class="article article-single article-type-post" itemscope itemprop="blogPost">
    <div class="article-inner">
        
            <header class="article-header">
                
    
        <h1 class="article-title" itemprop="name">
        股票球
        </h1>
    

            </header>
        
        
            <div class="article-meta">
                
  <div class="article-date">
    <i class="fa fa-calendar"></i>
    <a href="/2021/01/17/%E8%82%A1%E7%A5%A8%E7%90%83/" class="article-date">
       <time datetime="2021-01-17T12:29:11.000Z" itemprop="datePublished">2021-01-17</time>
    </a>
  </div>


<div class="article-date">
  <i class="fa fa-calendar-plus-o"></i>
  <a href="/2021/01/17/%E8%82%A1%E7%A5%A8%E7%90%83/" class="article-date">
     <time datetime="2022-03-01T12:29:47.000Z" itemprop="dateModified">2022-03-01</time>
  </a>
</div>


                

                
                

                

            </div>
        
        
        <div class="article-entry" itemprop="articleBody">
            

            

            

            <h1 id="股票球，采用的是qt和新浪的api来设计，目前只有查看功能，2021年1月17日开始开发，后续可能会持续更新（可能跟心情有关）"><a href="#股票球，采用的是qt和新浪的api来设计，目前只有查看功能，2021年1月17日开始开发，后续可能会持续更新（可能跟心情有关）" class="headerlink" title="股票球，采用的是qt和新浪的api来设计，目前只有查看功能，2021年1月17日开始开发，后续可能会持续更新（可能跟心情有关）"></a>股票球，采用的是qt和新浪的api来设计，目前只有查看功能，2021年1月17日开始开发，后续可能会持续更新（可能跟心情有关）</h1><h1 id="k线图在-Windows下获取数据有问题，还没来得及做，目前在Linux下没有问题，并打了一个deb包qt5-11-3制作的，可以玩一下，Windows下的版本会在以后加吧-2021-4-1"><a href="#k线图在-Windows下获取数据有问题，还没来得及做，目前在Linux下没有问题，并打了一个deb包qt5-11-3制作的，可以玩一下，Windows下的版本会在以后加吧-2021-4-1" class="headerlink" title="k线图在 Windows下获取数据有问题，还没来得及做，目前在Linux下没有问题，并打了一个deb包qt5.11.3制作的，可以玩一下，Windows下的版本会在以后加吧(2021/4/1)"></a>k线图在 Windows下获取数据有问题，还没来得及做，目前在Linux下没有问题，并打了一个deb包qt5.11.3制作的，可以玩一下，Windows下的版本会在以后加吧(2021/4/1)</h1><h2 id="项目代码地址"><a href="#项目代码地址" class="headerlink" title="项目代码地址"></a>项目代码地址</h2><p><a target="_blank" rel="noopener" href="https://github.com/dependon/Stock-Ball/">https://github.com/dependon/Stock-Ball/</a></p>
<h2 id="编译"><a href="#编译" class="headerlink" title="编译"></a>编译</h2><p>只需要qt的原生环境即可，目前开发环境是5.11.3,系统是Uniontech OS国产操作系统，测试其他linux和windows10均可以使用，当前无外部依赖（后续心情好会增加点有意思的东西）</p>
<h2 id="如何使用"><a href="#如何使用" class="headerlink" title="如何使用"></a>如何使用</h2><p>打开程序，会出现一个小球，如图所示，右键打开设置主界面可以配置，数据库采用的是本地数据库sqlite，不需要额外创建，代码里面有创建</p>
<p>linux会出现在右上角，windows会出现在屏幕中间</p>
<p><img src="https://img-blog.csdnimg.cn/293e2ea8770e40eda65d59e6bb3a8c61.png" alt="在这里插入图片描述"></p>
<h2 id="查看界面"><a href="#查看界面" class="headerlink" title="查看界面:"></a>查看界面:</h2><p><img src="https://img-blog.csdnimg.cn/12309fae796a4931bd9985fddbc2b47b.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQzMDgxNzAy,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"><br>源码都在之前的github链接,可自行下载和使用</p>
<h2 id="联系我（欢迎提供意见和帮助）"><a href="#联系我（欢迎提供意见和帮助）" class="headerlink" title="联系我（欢迎提供意见和帮助）"></a>联系我（欢迎提供意见和帮助）</h2><p><a href="mailto:&#108;&#105;&#117;&#x6d;&#105;&#x6e;&#103;&#104;&#97;&#110;&#x67;&#x30;&#x38;&#50;&#49;&#x40;&#x71;&#x71;&#x2e;&#x63;&#111;&#x6d;">&#108;&#105;&#117;&#x6d;&#105;&#x6e;&#103;&#104;&#97;&#110;&#x67;&#x30;&#x38;&#50;&#49;&#x40;&#x71;&#x71;&#x2e;&#x63;&#111;&#x6d;</a></p>
<h2 id="参考"><a href="#参考" class="headerlink" title="参考"></a>参考</h2><p>小球的设计参考<br><a target="_blank" rel="noopener" href="https://github.com/sonichy/HTYFloatBall">https://github.com/sonichy/HTYFloatBall</a><br>曲线图参考<br><a target="_blank" rel="noopener" href="https://github.com/cetcjinjian/QT_StockFigure">https://github.com/cetcjinjian/QT_StockFigure</a></p>

        </div>
        <footer class="article-footer">
            



    <a data-url="http://example.com/2021/01/17/%E8%82%A1%E7%A5%A8%E7%90%83/" data-id="cl084kqfn0002gyff20fxf1nd" class="article-share-link"><i class="fa fa-share"></i>分享到</a>
<script>
    (function ($) {
        $('body').on('click', function() {
            $('.article-share-box.on').removeClass('on');
        }).on('click', '.article-share-link', function(e) {
            e.stopPropagation();

            var $this = $(this),
                url = $this.attr('data-url'),
                encodedUrl = encodeURIComponent(url),
                id = 'article-share-box-' + $this.attr('data-id'),
                offset = $this.offset(),
                box;

            if ($('#' + id).length) {
                box = $('#' + id);

                if (box.hasClass('on')){
                    box.removeClass('on');
                    return;
                }
            } else {
                var html = [
                    '<div id="' + id + '" class="article-share-box">',
                        '<input class="article-share-input" value="' + url + '">',
                        '<div class="article-share-links">',
                            '<a href="https://twitter.com/intent/tweet?url=' + encodedUrl + '" class="article-share-twitter" target="_blank" title="Twitter"></a>',
                            '<a href="https://www.facebook.com/sharer.php?u=' + encodedUrl + '" class="article-share-facebook" target="_blank" title="Facebook"></a>',
                            '<a href="http://pinterest.com/pin/create/button/?url=' + encodedUrl + '" class="article-share-pinterest" target="_blank" title="Pinterest"></a>',
                            '<a href="https://plus.google.com/share?url=' + encodedUrl + '" class="article-share-google" target="_blank" title="Google+"></a>',
                        '</div>',
                    '</div>'
                ].join('');

              box = $(html);

              $('body').append(box);
            }

            $('.article-share-box.on').hide();

            box.css({
                top: offset.top + 25,
                left: offset.left
            }).addClass('on');

        }).on('click', '.article-share-box', function (e) {
            e.stopPropagation();
        }).on('click', '.article-share-box-input', function () {
            $(this).select();
        }).on('click', '.article-share-box-link', function (e) {
            e.preventDefault();
            e.stopPropagation();

            window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450');
        });
    })(jQuery);
</script>

        </footer>
    </div>
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "BlogPosting",
        "author": {
            "@type": "Person",
            "name": "depend"
        },
        "headline": "股票球",
        "image": "http://example.comhttps://img-blog.csdnimg.cn/293e2ea8770e40eda65d59e6bb3a8c61.png",
        "keywords": "",
        "genre": "",
        "datePublished": "2021-01-17",
        "dateCreated": "2021-01-17",
        "dateModified": "2022-03-01",
        "url": "http://example.com/2021/01/17/股票球/",
        "description": "股票球，采用的是qt和新浪的api来设计，目前只有查看功能，2021年1月17日开始开发，后续可能会持续更新（可能跟心情有关）k线图在 Windows下获取数据有问题，还没来得及做，目前在Linux下没有问题，并打了一个deb包qt5.11.3制作的，可以玩一下，Windows下的版本会在以后加吧(2021/4/1)项目代码地址https://github.com/dependon/Stock-B",
        "wordCount": 44
    }
</script>

</article>

    <section id="comments">
    
        
    <div id="disqus_thread">
        <noscript>Please enable JavaScript to view the <a target="_blank" rel="noopener" href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    </div>


    
    </section>



                        </div>
                    </section>
                    <aside id="sidebar">
    <a class="sidebar-toggle" title="Expand Sidebar"><i class="toggle icon"></i></a>
    <div class="sidebar-top">
        <p>关注我 :</p>
        <ul class="social-links">
            
                
                <li>
                    <a class="social-tooltip" title="github" href="https://github.com/dependon" target="_blank" rel="noopener">
                        <i class="icon fa fa-github"></i>
                    </a>
                </li>
                
            
                
                <li>
                    <a class="social-tooltip" title="bilibili" href="https://space.bilibili.com/144159485" target="_blank" rel="noopener">
                        <i class="icon fa fa-bilibili"></i>
                    </a>
                </li>
                
            
                
                <li>
                    <a class="social-tooltip" title="csdn" href="https://blog.csdn.net/qq_43081702" target="_blank" rel="noopener">
                        <i class="icon fa fa-csdn"></i>
                    </a>
                </li>
                
            
        </ul>
    </div>
    
        
<nav id="article-nav">
    
        <a href="/2022/01/20/%E7%94%A8QT%E3%80%81QImage%E6%9D%A5%E5%88%B6%E4%BD%9C%E7%AE%80%E5%8D%95%E5%9B%BE%E5%83%8F%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7/" id="article-nav-newer" class="article-nav-link-wrap">
        <strong class="article-nav-caption">下一篇</strong>
        <p class="article-nav-title">
        
            用QT、QImage来制作简单图像处理工具
        
        </p>
        <i class="icon fa fa-chevron-right" id="icon-chevron-right"></i>
    </a>
    
    
</nav>

    
    <div class="widgets-container">
        
            
                

            
                
    <div class="widget-wrap">
        <h3 class="widget-title">最新文章</h3>
        <div class="widget">
            <ul id="recent-post" class="">
                
                    <li>
                        
                        <div class="item-thumbnail">
                            <a href="/2022/03/01/%E5%B9%BB%E6%A2%A6%E5%8A%A8%E6%80%81%E5%A3%81%E7%BA%B8/" class="thumbnail">
    
    
        <span style="background-image:url(https://img-blog.csdnimg.cn/img_convert/0c03f646626b978e2315a746dee74578.gif)" alt="幻梦动态壁纸" class="thumbnail-image"></span>
    
    
</a>

                        </div>
                        
                        <div class="item-inner">
                            <p class="item-category"></p>
                            <p class="item-title"><a href="/2022/03/01/%E5%B9%BB%E6%A2%A6%E5%8A%A8%E6%80%81%E5%A3%81%E7%BA%B8/" class="title">幻梦动态壁纸</a></p>
                            <p class="item-date"><time datetime="2022-03-01T11:57:56.000Z" itemprop="datePublished">2022-03-01</time></p>
                        </div>
                    </li>
                
                    <li>
                        
                        <div class="item-thumbnail">
                            <a href="/2022/01/20/%E7%94%A8QT%E3%80%81QImage%E6%9D%A5%E5%88%B6%E4%BD%9C%E7%AE%80%E5%8D%95%E5%9B%BE%E5%83%8F%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7/" class="thumbnail">
    
    
        <span style="background-image:url(https://img-blog.csdnimg.cn/20210518142043861.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQzMDgxNzAy,size_16,color_FFFFFF,t_70)" alt="用QT、QImage来制作简单图像处理工具" class="thumbnail-image"></span>
    
    
</a>

                        </div>
                        
                        <div class="item-inner">
                            <p class="item-category"></p>
                            <p class="item-title"><a href="/2022/01/20/%E7%94%A8QT%E3%80%81QImage%E6%9D%A5%E5%88%B6%E4%BD%9C%E7%AE%80%E5%8D%95%E5%9B%BE%E5%83%8F%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7/" class="title">用QT、QImage来制作简单图像处理工具</a></p>
                            <p class="item-date"><time datetime="2022-01-20T12:29:11.000Z" itemprop="datePublished">2022-01-20</time></p>
                        </div>
                    </li>
                
                    <li>
                        
                        <div class="item-thumbnail">
                            <a href="/2021/01/17/%E8%82%A1%E7%A5%A8%E7%90%83/" class="thumbnail">
    
    
        <span style="background-image:url(https://img-blog.csdnimg.cn/293e2ea8770e40eda65d59e6bb3a8c61.png)" alt="股票球" class="thumbnail-image"></span>
    
    
</a>

                        </div>
                        
                        <div class="item-inner">
                            <p class="item-category"></p>
                            <p class="item-title"><a href="/2021/01/17/%E8%82%A1%E7%A5%A8%E7%90%83/" class="title">股票球</a></p>
                            <p class="item-date"><time datetime="2021-01-17T12:29:11.000Z" itemprop="datePublished">2021-01-17</time></p>
                        </div>
                    </li>
                
            </ul>
        </div>
    </div>

            
                

            
                
    <div class="widget-wrap widget-list">
        <h3 class="widget-title">归档</h3>
        <div class="widget">
            <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/03/">三月 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/01/">一月 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/01/">一月 2021</a><span class="archive-list-count">1</span></li></ul>
        </div>
    </div>


            
                

            
                

            
                
    <div class="widget-wrap widget-list">
        <h3 class="widget-title">链接</h3>
        <div class="widget">
            <ul>
                
                    <li>
                        <a target="_blank" rel="noopener" href="https://gitee.com/liuminghang">gitee</a>
                    </li>
                
                    <li>
                        <a target="_blank" rel="noopener" href="https://github.com/dependon">github</a>
                    </li>
                
                    <li>
                        <a target="_blank" rel="noopener" href="https://space.bilibili.com/144159485">bilibili</a>
                    </li>
                
                    <li>
                        <a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_43081702">csdn</a>
                    </li>
                
                    <li>
                        <a target="_blank" rel="noopener" href="http://hexo.io">Hexo</a>
                    </li>
                
            </ul>
        </div>
    </div>


            
        
    </div>
</aside>

                </div>
            </div>
        </div>
        <footer id="footer">
    <div class="container">
        <div class="container-inner">
            <a id="back-to-top" href="javascript:;"><i class="icon fa fa-angle-up"></i></a>
            <div class="credit">
                <h1 class="logo-wrap">
                    <a href="/" class="logo"></a>
                </h1>
                <p>&copy; 2022 depend</p>
                
                <p>Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>. Theme by <a href="https://github.com/ppoffice" target="_blank">PPOffice</a></p>
                
            </div>
            <div class="footer-plugins">
              
    


            </div>
        </div>
    </div>
</footer>

    </div>
    
    
    <script>
    var disqus_shortname = 'hexo-theme-hueman';
    
    
    var disqus_url = 'http://example.com/2021/01/17/%E8%82%A1%E7%A5%A8%E7%90%83/';
    
    (function() {
    var dsq = document.createElement('script');
    dsq.type = 'text/javascript';
    dsq.async = true;
    dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
    </script>





    
        
<script src="/libs/lightgallery/js/lightgallery.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-thumbnail.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-pager.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-autoplay.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-fullscreen.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-zoom.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-hash.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-share.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-video.min.js"></script>

    
    
        
<script src="/libs/justified-gallery/jquery.justifiedGallery.min.js"></script>

    
    

    
    
    



<!-- Custom Scripts -->

<script src="/js/main.js"></script>


</body>
</html>
